<?php

namespace EasyVote\EasyVoteBundle\Entity;

use Doctrine\ORM\Mapping as ORM;


/**
 * Stores a person's scoped affiliation. Ex: student@unt.edu
 * This entity just exists for normalization reasons.
 * @ORM\Entity()
 */
class ScopedAffiliation
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * The name of the scoped affiliation (e.g. student@unt.edu)
     * @var string
     *
     * @ORM\Column(name="value", type="string")
     */
    private $value;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set value
     *
     * @param string $value
     * @return User
     */
    public function setValue($value)
    {
        $this->value = $value;
        return $this;
    }

    /**
     * Get value
     *
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }
}
